home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / eslide.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  129 lines

  1. head    1.3;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.3; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.3
  10. date    97.07.14.04.26.54;    author dlorre;    state Exp;
  11. branches;
  12. next    1.2;
  13.  
  14. 1.2
  15. date    96.08.28.20.08.57;    author dlorre;    state Exp;
  16. branches;
  17. next    1.1;
  18.  
  19. 1.1
  20. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  21. branches;
  22. next    ;
  23.  
  24.  
  25. desc
  26. @Oui.lib -- Object User Interface
  27. Projet créé en 1994
  28. Auteur: Dominique Lorre
  29. @
  30.  
  31.  
  32. 1.3
  33. log
  34. @*** empty log message ***
  35. @
  36. text
  37. @// $Id$
  38. #ifndef CLASS_ESLIDE_H
  39. #define CLASS_ESLIDE_H
  40.  
  41. #ifndef EXEC_TYPES_H
  42. #include <exec/types.h>
  43. #endif
  44.  
  45. #if !defined( PLACETEXT_LEFT )
  46. #define PLACETEXT_LEFT  0x0001  /* Right-align text on left side */
  47. #endif
  48.  
  49. #ifndef INTUITION_GADGETCLASS_H
  50. #define LORIENT_HORIZ   1
  51. #endif
  52.  
  53. #ifndef CLASS_WINDOW_H
  54. class window ;
  55. #endif
  56.  
  57. #ifndef CLASS_GADGETLIST_H
  58. class gadgetlist ;
  59. #endif
  60.  
  61. #ifndef CLASS_GADGET_H
  62. #include "gadgets/gadget.h"
  63. #endif
  64.  
  65. // ========================================================================
  66. // ============================  ESLIDE CLASS =============================
  67. // ========================================================================
  68.  
  69.  
  70. class eslide : public gadget
  71. {
  72.     int cursel ;
  73.     int smin ;
  74.     int smax ;
  75.     STRPTR      norm1 ;
  76.     STRPTR      norm2 ;
  77.     STRPTR      under ;
  78.  
  79.     IntuiText   *it1 ;
  80.     IntuiText   *it2 ;
  81.     IntuiText   *it3 ;
  82.  
  83.     TextFont    *font ;
  84.     TTextAttr   *underline ;
  85.     TTextAttr   *plain ;
  86. public:
  87.     eslide(gadgetlist *gl,
  88.                void (window::*func)(gadget *, unsigned long, unsigned short),
  89.                long min,
  90.                long max,
  91.                long level,
  92.                long freedom=LORIENT_HORIZ,
  93.                const char *t=NULL,
  94.                long flags=PLACETEXT_LEFT) ;
  95.     ~eslide() ;
  96.     void set(long level, long min=-1, long max=-1, short disable=FALSE) ;
  97.     void action(unsigned long classe, unsigned short code) ;
  98.     void keystroke(BOOL shifted) ;
  99. };
  100.  
  101. #endif
  102. @
  103.  
  104.  
  105. 1.2
  106. log
  107. @support orientation verticale
  108. @
  109. text
  110. @d1 1
  111. d9 4
  112. d39 11
  113. d56 3
  114. a58 1
  115.                long freedom=LORIENT_HORIZ) ;
  116. @
  117.  
  118.  
  119. 1.1
  120. log
  121. @Initial revision
  122. @
  123. text
  124. @d8 4
  125. d39 2
  126. a40 1
  127.                long level) ;
  128. @
  129.